package com.cs.code.auto;

/**
 * <p>
 *     全局配置
 * </p>
 * @author wind
 * @date    2025/1/22 11:40
 * @version v1.0
 */
public class GlobalConfig {

    /**
     * 作者名称
     */
    protected String author;

    /**
     * 输出目录
     */
    protected String outDir;

    /**
     * 是否覆盖
     */
    protected boolean override;

    /**
     * 是否先清空输出目录
     */
    protected boolean clear;

    protected GlobalConfig(){

    }

    public GlobalConfig author(String author){
        this.author = author;
        return this;
    }

    public GlobalConfig outDir(String outDir){
        this.outDir = outDir;
        return this;
    }

    public GlobalConfig override(boolean override){
        this.override = override;
        return this;
    }

    public GlobalConfig clear(){
        this.clear = true;
        return this;
    }
}
